<?php
if (!defined('TYPO3_MODE')) {
	die ('Access denied.');
}



if (TYPO3_MODE == 'BE') {
	t3lib_extMgm::addModulePath('web_txmtgeneralM1', t3lib_extMgm::extPath($_EXTKEY) . 'mod1/');
		
	t3lib_extMgm::addModule('web', 'txmtgeneralM1', '', t3lib_extMgm::extPath($_EXTKEY) . 'mod1/');
 	$TBE_STYLES['inDocStyles_TBEstyle'] .= '@import "/typo3conf/ext/mt_general/res/css/backend.css";';

	

	$mtgeneralPath = t3lib_extMgm::extPath('mt_general');
		// register toolbar item
	$GLOBALS['TYPO3_CONF_VARS']['typo3/backend.php']['additionalBackendItems'][] = $mtgeneralPath.'registerToolbarItem.php';


		// register AJAX calls
	//$GLOBALS['TYPO3_CONF_VARS']['BE']['AJAX']['tx_opendocs::renderMenu']   = $mtgeneralPath.'class.tx_mtgeneral.php:tx_mtgeneral->renderAjax';
	//$GLOBALS['TYPO3_CONF_VARS']['BE']['AJAX']['tx_opendocs::closeDocument'] = $mtgeneralPath.'class.tx_mtgeneral.php:tx_mtgeneral->closeDocument';



		// register menu module if option is wanted
	$_EXTCONF = unserialize($_EXTCONF);
	if($_EXTCONF['enableModule']) {
		t3lib_extMgm::addModule('user', '', 'before:user_setup', $opendocsPath.'mod/');
	}
	
}

?>